#include<stdio.h>
char* my_strstr(const char*arr1,const char*arr2)
{
	
	const char*con=arr2;
	while(*con)
	{
		const char*a1=arr1;
		const char*a2=arr2;
		while(*a1&&*a2&&*a1==*a2)
		{
			a1++;
			a2++;
		}
		if(*a2=='\0')
		return (char*)con;
		con++;
	}
	return NULL;
}

int main()
{
	char arr1[]="abcdefgh";
	char arr2[]="fgh";
	char* ret=my_strstr(arr1,arr2);
	printf("%s",ret);
	return 0;
 } 
